let uu = document.querySelector('.uu')
let ql = ""
//let id = getQueryString('productid');
fetch('http://chst.vip:1234/api/getmoneyctrl')
    .then(body => body.json())
    .then(res => {
        console.log(res)
        res.result.forEach(item => {
            let regExp = /(?<=imgurl=)[^'"]*/;
            let r = item.productImg2.match(regExp);
            ql += `<li productid=${item.productId}>
        <a href="">
        <div class="dv1">
        <img src="${r[0]}" alt="">
        </div>
        <div class="dv2">
        <h4>${item.productName}<span>${item.productPinkage}</span></h4>
       

        <div class="dv2-1">
        <span class="sp1">${item.productFrom}丨${item.productTime}</span>
        <span class="sp2">${item.productComCount}</span>
        </div>
        </div>
        </a>
        </li>`



        })
        uu.innerHTML = ql

    })
let flag = false;
$('.bt').click(function () {
    console.log(1)
    if (!flag) {
        flag = true
        $(this).nextAll().slideUp()
    } else {
        flag = false;
        $(this).nextAll().slideDown()
    }
})



let footer = document.querySelector('#footer')
footer.onclick = function (e) {

    if (e.target.localName === 'li') {
        $('html,body').animate({
            scrollTop: 0
        }, 100)
    }
}
$('.sqk').click(function () {
    location.href = './sqk.html'
})
/* $('.gnzk').click(function(){
    location.href='./gnzk.html'
})
 */
$('.gnzk').click(function () {
    location.href = './gnzk.html'
})
$('.bcj').click(function () {
    location.href = './baicaijia.html'
})
$('.htzk').click(function () {
    location.href = './sqk.html'
})
$('.yhj').click(function () {
    location.href = './yhj.html'
})
$('.cdp').click(function () {
    location.href = './cdp.html'
})
$('.scdh').click(function () {
    location.href = './spdh.html'
})
$('.htzk').click(function () {
    location.href = './sqk.html'
})
$('.clsj').click(function () {
    location.href = './bjss.html'
})
$('.kbph').click(function () {
    location.href = './bjss.html'
})
$('.ppdq').click(function () {
    location.href = './ppdq.html'
})